package com.bit.librarymanagementsystem.model;

import lombok.Data;

@Data
public class PageRequest {

    private int offset;
    private int pageSize=10;//每页的数量
    private int currentPage=1;//当前页码

    public int getOffset() {
        return (currentPage-1)*pageSize;
    }
}
